<div class="full_w">
    <div class="h_title"><?php echo Yii::t('AdmincpModule.admincp', 'Change Password'); ?></div>
    <?php 
        foreach(Yii::app()->admin->getFlashes() as $key => $message){
            echo '<div class="n_'.$key.'"><p>'.$message."</p></div>\n";
        }
    ?>
    <form action="" method="post" id="frm">
    	<div class="element">
            <label>Old Password <span class="red">*</span></label>
            <input type="password" name="old_password" id="old_password" class="text required" value="" autocomplete="off">
        </div>
        <div class="element">
            <label>New Password <span class="red">*</span></label>
            <input type="password" name="new_password" id="new_password" class="text required" value="" autocomplete="off">
        </div>
        <div class="element">
            <label>Re-type New Password <span class="red">*</span></label>
            <input type="password" name="new_password_confirm" id="new_password_confirm" class="text required" value=""  autocomplete="off">
        </div>        
        <div class="entry">
            <button type="submit">Submit</button> <button>Cancel</button>
        </div>
    </form>
</div>
<script type="text/javascript">
	$(function(){
		$('#frm').validate({
			rules: {
				new_password: {
					minlength: 4
				},
				new_password_confirm: {
					equalTo: "#new_password"
				}
			}
		});
	});
</script>